﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Spinning.Spinning.Scenes.ProcessScene;
using Microsoft.Xna.Framework;
using Spinning.Spinning.Unitity;

namespace Spinning.Spinning.Entity
{
    class GameItem : Item
    {
        Sprite bgSprite;
        public GameItem()
            : base()
        {
            
        }

        public override void OnLoad()
        {
            base.OnLoad();
            bgSprite = new Sprite();
            bgSprite.textureName = "gameItemBar/frame_s";
            bgSprite.ZIndex = Constants.uibackground;
            bgSprite.Origin = new Vector2(0.5f);
            bgSprite.Position = Position + new Vector2(200);
            bgSprite.OnLoad();
            bgSprite.Static = true;
            this.Attach(bgSprite);
        }
    }
}
